﻿using System.ComponentModel.Composition;
using System.Windows.Input;
using Microsoft.Expression.Interactivity.Core;
using Model;

namespace UltiStats.UI
{
  /// <summary>
  /// View model for the <see cref="MainPage"/>.
  /// </summary>
  public class MainPageViewModel
  {
    [Import(typeof(IMainModel))]
    public IMainModel MainModel{private get; set; }
    
    public readonly ICommand ScoreCommand;

    public MainPageViewModel()
    {
      ScoreCommand = new ActionCommand(PlayerScored);
      MainModel = new MainModel();
    }

    private void PlayerScored()
    {
      MainModel.PlayerAction(null, null);
    }
  }
}
